<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>内部用户管理-操作记录</title>
<link rel="stylesheet" href="resources/static/css/pintuer.css">
<link rel="stylesheet" href="resources/static/css/admin.css">
<script src="resources/static/js/jquery.js"></script>
<script src="resources/static/js/pintuer.js"></script>
<script type="text/javascript">
	//上一页
	function upPage() {
		if (${pages.currentPage} == 1){
			
		}else{
		$("#upPage").attr("href", "record/recordList?page=" + (${pages.currentPage} - 1));
		}
	}

	//下一页
	function nextPage(){
		if (${pages.currentPage} == ${pages.totalPages}){
			
		}else{
		$("#nextPage").attr("href","record/recordList?page=" + (${pages.currentPage} + 1));
		}
	}
	
	//首页
	function head(){
		$("#head").attr("href", "record/recordList?page=1");
	}
	
	//末页
	function last(){
		$("#last").attr("href", "record/recordList?page=" + ${pages.totalPages});			
	}

</script>
</head>
<body>
	<div class="panel admin-panel">
		<div class="padding border-bottom">
			<button type="button" class="button border-yellow"
				onClick="window.location.href='record/recordList'">浏览记录</button>
			<button type="button" class="button border-yellow"
				onClick="window.location.href=''">下载记录</button>
			<button type="button" class="button border-yellow"
				onClick="window.location.href=''">点赞记录</button>
			<button type="button" class="button border-yellow"
				onClick="window.location.href='WEB-INF/views/inuser/record_pl.jsp'">评论记录</button>
		</div>
		<div class="panel-head">
			<strong class="icon-reorder">浏览列表</strong>
		</div>
		<table class="table table-hover text-center">
			<tr>
				<th width="">序号</th>
				<th width="">文件名</th>
				<th width="">作者</th>
				<th width="">类型</th>
				<th width="">浏览时间</th>
			</tr>
			<c:forEach items="${articlelist}" var="articlelist"
				varStatus="status">
				<tr>
					<td>${status.index+1}</td>
					<td>${articlelist.fieldname}</td>
					<td>${articlelist.author}</td>
					<td>${articlelist.filetype}</td>
					<td>${articlelist.finaltime}</td>
				</tr>
			</c:forEach>
			<tr>
				<td colspan="8">
					<div class="pagelist">
						<span class="fl pl10">共检测到${pages.count }条记录</span> <span
							class="pr10"> <a id="head" onclick="head()">首页</a> <a
							id="upPage" onclick="upPage()">上一页</a> <c:forEach var="i"
								begin="1" end="${pages.totalPages }" step="1">
								<a href="record/recordList?page=${i}">${i}</a>
							</c:forEach> <a id="nextPage" onclick="nextPage()">下一页</a> <a id="last"
							onclick="last()">尾页</a>
						</span>
					</div>
				</td>
			</tr>

		</table>
	</div>
</body>
</html>